home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 232 < prev    next >
Text File  |  1996-08-06  |  2KB  |  39 lines

  1. Path: usin.com!rwells
  2. From: rwells@usin.com (Roger Wells)
  3. Newsgroups: comp.lang.c,comp.std.c
  4. Subject: Re: Integral conversion e.t.c. (was: Re: Hungarian notation)
  5. Date: 30 Jan 1996 16:30:07 GMT
  6. Organization: U.S. Intelco Networks, Inc.
  7. Distribution: world
  8. Message-ID: <4elh2f$g27@news1.halcyon.com>
  9. References: <30C40F77.53B5@swsbbs.com> <SPENCER.96Jan22113215@zorgon.ERA.COM> <KANZE.96Jan29201312@slsvewt.lts.sel.alcatel.de>
  10. NNTP-Posting-Host: 198.202.216.7
  11.  
  12. In article <KANZE.96Jan29201312@slsvewt.lts.sel.alcatel.de>, kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763) writes:
  13.  
  14. >Try naming a global function read, and see what happens (on most
  15. >compilers, anyway).  In fact, the Posix standard requires it, and
  16. >thus, you cannot be Posix compliant without encroaching upon the user
  17. >name space.  (For example.  I'm sure that most other systems will have
  18. >similar constraints.)
  19.  
  20. >James Kanze         Tel.: (+33) 88 14 49 00        email: kanze@gabi-soft.fr
  21. >GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
  22. >Conseils, Θtudes et rΘalisations en logiciel orientΘ objet --
  23. >                -- A la recherche d'une activitΘ dans une region francophone
  24.  
  25. The Hewlett-Packard compilers I'm familiar with handle this quite well.
  26. As far as I can determine, there are two kernel calls, named read() and
  27. _read().  The standard I/O library functions all call _read().  If you don't
  28. create your own function read(), you have access to the read() kernel call,
  29. as POSIX requires.  On the other hand, if you are only interested in ISO C
  30. compliance, not POSIX compliance, and create your own function read(), the
  31. standard I/O library functions still work.  (Same for the other kernel calls.)
  32.  
  33. James Kanze is correct that many C libraries will fail ISO C compliance in
  34. this respect.  This is one of the things I look for when I check for strict
  35. ISO C compliance.
  36.  
  37. --
  38. Roger Wells (speaking only for myself)
  39.